package pipecleaner.agent.core;

import javax.servlet.http.HttpServletRequest;

public class HttpRequestDispatcher implements RequestDispatcher
{
	private Configuration config;

	public HttpRequestDispatcher (final Configuration configuration) {
		this.config = configuration;
	}

	public Result dispatch (HttpServletRequest request) {
		Command command = config.loadCommand(request);
		return new Result(true, command.getName());
	}
}
